app.service("goodsManagementService",function ($http) {
    //搜索
    this.search=function(pageNum,pageSize,searchEntity){
        return $http.post('../goodsManagementController/search.do?pageNum='+pageNum+"&pageSize="+pageSize, searchEntity);
    }
    //查询实体
    this.findOne=function(id){
        return $http.get('../goodsManagementController/findOne.do?id='+id);
    }
    //逻辑删除
    this.delete=function(ids){
        return $http.get('../goodsManagementController/delete.do?ids='+ids);
    }
    //修改
    this.updateAuditStatus=function(ids,status){
        return $http.post('../goodsManagementController/updateAuditStatus.do?status='+status,ids);
    }

});